package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 公共场所实体
 */
@Table(name = "kc_public_place")
@Data
public class BizPublicPlace {
    /*主键id*/
    @Id
    private Integer id;
    /*类别ids*/
    @NotNull(message = "类别id不能为空")
    private Integer typeId;
    /*经度坐标*/
    @NotNull(message = "纬度坐标不能为空")
    private BigDecimal longitude;
    /*纬度坐标*/
    @NotNull(message = "经度坐标不能为空")
    private BigDecimal latitude;
    /*状态*/
    @NotNull(message = "状态不能为空")
    private String status;
    private Integer isDeleted = 0;
    @NotBlank(message = "名称不能为空")
    private String name;
}
